package com.zwxbc.funplay.dao;

import com.zwxbc.funplay.entity.PurchaseRecord;

import java.util.List;

public interface PurchaseRecordDao {

	/**
	 * 添加订单
	 * @param purchaseRecord
	 */
	int addPurchaseRecord(PurchaseRecord purchaseRecord);

	/**
	 * 根据id获取订单
	 * @param purchaseRecordId
	 * @return
	 */
	PurchaseRecord getPurchaseRecordById(Long purchaseRecordId);

	/**
	 * 获取所有的订单
	 * @return
	 */
	List<PurchaseRecord> getAllPurchaseRecords();

	/**
	 * 修改订单
	 * @param purchaseRecord
	 */
	int updatePurchaseRecord(PurchaseRecord purchaseRecord);

	/**
	 * 删除订单
	 * @param purchaseRecordId
	 */
	int deletePurchaseRecord(Long purchaseRecordId);
}
